<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        // 构造函数特点，用函数方法创建对象
        // 变量名首字母大写
        function Person(name,age,gender){
            // 将这些属性添加到对象中
            this.name = name;
            this.age = age;
            this.genser = gender;
            // 向函数中添加一个方法
            this.sayName = funtion(){
                alert(this.name);
            }
        }

    </script>
</head>
<body>

</body>
</html>